
<?php 
if($_GET['tambahjabatan']!="") {
	
}
?>

<div class="da-panel">
	<div class="da-panel-header">
		<span class="da-panel-title">
			<i class="icon-user"></i> Pegawai Jabatan &nbsp;
		</span>
	</div>
	<div class="da-panel-content da-form-container">
	<?php
		if(isset($_POST['tambah']) && $_POST['tambah']!="") {
		mysql_query("INSERT INTO r_jabatan VALUE('','".strtoupper($_POST['jabatan'])."','')"); 
	?>
		<div class="da-message success">
			Data Jabatan berhasil ditambahkan
		</div>
	<?php } ?>
<table id="da-ex-datatable-numberpaging" class="da-table checkable">
	<thead>
		<tr>
			<th>Kode Jabatan</th>
			<th>Nama Jabatan</th>
			<th></th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<form method="POST" action="">
			<td></td>
			<td><input class="span12" type="text" name="jabatan" /></td>
			<td>
				<input class="btn" type="submit" name="tambah" value="Tambah"/>
			</td>
			</form>
		</tr>
		<?php
		$q = mysql_query("SELECT * FROM r_jabatan");
		while($dt = mysql_fetch_array($q)) {
		?>
		<tr>
			<td><?php echo $dt['kd_jabatan'] ?></td>
			<td><?php echo $dt['nm_jabatan'] ?></td>
			<td>
				<a href="#" rel="tooltip" data-placement="top" title="Ubah"><i class="icol-pencil"></i></a>
				<a href="modul/pegawai/pegawai.proses.php?kd=<?php echo $dt['kd_pegawai'] ?>" 
				rel="tooltip" data-placement="top" title="Hapus"
				id="pegawai-hapus"
				>
					<i class="icol-cross"></i>
				</a>&nbsp;&nbsp;&nbsp;
			</td>
		</tr>
		<?php } ?>
	</tbody>
</table>		

	</div>
</div>
